import request from '@/utils/request'

export function fetchGradeList(data) {
  return request({
    url: '/cloud-system/getGradeList',
    method: 'post',
    data
  })
}

export function fetchGradeOne(data) {
  return request({
    url: '/cloud-system/getOneGradeDetail',
    method: 'post',
    data
  })
}

export function createGrade(data) {
  return request({
    url: '/cloud-system/createOneGrade',
    method: 'post',
    data
  })
}

export function updateGrade(data) {
  return request({
    url: '/cloud-system/updateOneGrade',
    method: 'post',
    data
  })
}

export function deleteGrade(data) {
  return request({
    url: '/cloud-system/deleteOneGrade',
    method: 'post',
    data
  })
}
export function batchDeleteGrade(data) {
  return request({
    url: '/cloud-system/batchDeleteGrade',
    method: 'post',
    data
  })
}

export function lockGrade(data) {
  return request({
    url: '/cloud-system/lockOneGrade',
    method: 'post',
    data
  })
}

export function unlockGrade(data) {
  return request({
    url: '/cloud-system/unlockOneGrade',
    method: 'post',
    data
  })
}

export function batchLockGrade(data) {
  return request({
    url: '/cloud-system/batchLockGrade',
    method: 'post',
    data
  })
}

export function batchUnLockGrade(data) {
  return request({
    url: '/cloud-system/batchUnLockGrade',
    method: 'post',
    data
  })
}
